<html>
	<head>
	<link href="./css/glcss.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" >
	</script>
	</head>
	
	
	<body>
		<form name="input" action="<?php echo $_SERVER["PHP_SELF"];?>" method="post">
			<table>
				<tr>
					<th>Field</th>
					<th>Value</th>
				</tr>
				<tr>
					<td>VR address:</td>
					<td>
						<input type="text" name="loc_ipv6_addr" />
					</td>
				</tr>
				<tr>
					<td>Local IPv4 address:</td>
					<td>
						<input type="text" name="loc_ipv4_addr" />
					</td>
				</tr>
				<tr>
					<td>Peer IPv4 address:</td>
					<td>
						<input type="text" name="opp_ipv4_addr" />
					</td>
				</tr>
				<tr>
					<td>Peer IPv6 address:</td>
					<td>
						<input type="text" name="opp_ipv6_addr" />
					</td>
				</tr>
				<tr>
					<td>Hello interval:</td>
					<td>
						<input type="text" name="hello_interval" />
					</td>
				</tr>
				<tr>
					<td>
					<input type="button" name="" value="Reset" />
					</td>
					<td>
					<input type="submit" name="" value="Submit"/>
					</td>
				</tr>
			</table>
		</form>
<?php
	if (count($_POST))
	{
	$vlinkconfxml .= "<vlinkconf>\n";
	$vlinkconfxml .= "\t<vr ipv6addr=\"" . $_POST["loc_ipv6_addr"] . "\">\n";
	$vlinkconfxml .= "\t\t<vlink>\n";
	$vlinkconfxml .= "\t\t\t<locipv4addr>" . $_POST["loc_ipv4_addr"] . "</locipv4addr>\n";
	$vlinkconfxml .= "\t\t\t<oppipv4addr>" . $_POST["opp_ipv4_addr"] . "</oppipv4addr>\n";
	$vlinkconfxml .= "\t\t\t<oppipv6addr>" . $_POST["opp_ipv6_addr"] . "</oppipv6addr>\n";
	$vlinkconfxml .= "\t\t\t<hellointerval>" . $_POST["hello_interval"] . "</hellointerval>\n";
	$vlinkconfxml .= "\t\t</vlink>\n";
	$vlinkconfxml .= "\t</vr>\n";
	$vlinkconfxml .= "</vlinkconf>";
	}
	echo $vlinkconfxml;
	//
?>
	</body>

</html>


